package cn.com.pusai.base.person.model;
// default package

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;
/**
 * OrgPerson entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ORG_PERSON", schema = "dbo", catalog = "ecoa_uuid")
public class Person implements java.io.Serializable {

	// Fields

	private String id;
	private String code;
	private String account;
	private String name;
	private String password;
	private Short sex;
	private Short status;
	private Date birthday;
	private String email;
	private String mobile;
	private String workTel;
	private String homeTel;
	private String homeAddres;
	private String linkman;
	private String linkmanTel;
	private String phoneImei;
	

	// Constructors

	/** default constructor */
	public Person() {
	}

	/** minimal constructor */
	public Person(String id) {
		this.id = id;
	}

	/** full constructor */
	public Person(String id, String code, String account, String name,
			String password, Short sex, Short status, Date birthday,
			String email, String mobile, String workTel, String homeTel,
			String homeAddres, String linkman, String linkmanTel,
			String phoneImei) {
		this.id = id;
		this.code = code;
		this.account = account;
		this.name = name;
		this.password = password;
		this.sex = sex;
		this.status = status;
		this.birthday = birthday;
		this.email = email;
		this.mobile = mobile;
		this.workTel = workTel;
		this.homeTel = homeTel;
		this.homeAddres = homeAddres;
		this.linkman = linkman;
		this.linkmanTel = linkmanTel;
		this.phoneImei = phoneImei;
		
	}

	// Property accessors
	@Id
	@GeneratedValue(generator="personuuid")
	@GenericGenerator(name="personuuid",strategy="uuid")
	@Column(name = "ID", unique = true, nullable = false, length = 32)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {	
		this.id = id;
	}

	@Column(name = "CODE", length = 20)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "ACCOUNT", length = 50)
	public String getAccount() {
		return this.account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	@Column(name = "NAME", length = 50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "PASSWORD", length = 50)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "SEX")
	public Short getSex() {
		return this.sex;
	}

	public void setSex(Short sex) {
		this.sex = sex;
	}

	@Column(name = "STATUS")
	public Short getStatus() {
		return this.status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "BIRTHDAY", length = 23)
	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Column(name = "EMAIL", length = 100)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "MOBILE", length = 15)
	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "WORK_TEL", length = 20)
	public String getWorkTel() {
		return this.workTel;
	}

	public void setWorkTel(String workTel) {
		this.workTel = workTel;
	}

	@Column(name = "HOME_TEL", length = 20)
	public String getHomeTel() {
		return this.homeTel;
	}

	public void setHomeTel(String homeTel) {
		this.homeTel = homeTel;
	}

	@Column(name = "HOME_ADDRES")
	public String getHomeAddres() {
		return this.homeAddres;
	}

	public void setHomeAddres(String homeAddres) {
		this.homeAddres = homeAddres;
	}

	@Column(name = "LINKMAN", length = 50)
	public String getLinkman() {
		return this.linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	@Column(name = "LINKMAN_TEL", length = 20)
	public String getLinkmanTel() {
		return this.linkmanTel;
	}

	public void setLinkmanTel(String linkmanTel) {
		this.linkmanTel = linkmanTel;
	}

	@Column(name = "PHONE_IMEI", length = 15)
	public String getPhoneImei() {
		return this.phoneImei;
	}

	public void setPhoneImei(String phoneImei) {
		this.phoneImei = phoneImei;
	}

	

}